package com.ds.dsm.view.config.menu;

import com.ds.common.JDSException;
import com.ds.dsm.view.config.menu.service.GridMenuService;
import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.form.enums.CustomFormMenu;
import com.ds.esd.custom.grid.enums.GridMenu;
import com.ds.esd.custom.grid.enums.GridRowMenu;
import com.ds.esd.custom.toolbar.BottomBarMenu;
import com.ds.esd.custom.tree.annotation.PopTreeAnnotation;
import com.ds.esd.custom.tree.annotation.TreeAnnotation;
import com.ds.esd.tool.ui.component.list.TreeListItem;
import com.ds.esd.tool.ui.enums.SelModeType;

@BottomBarMenu()
@TreeAnnotation(heplBar = true,  selMode = SelModeType.multibycheckbox)
@PopTreeAnnotation(caption = "添加按钮", customService = {GridMenuService.class},  bottombarMenu = {CustomFormMenu.Close, CustomFormMenu.Save})
public class GalleryMenuPopTree extends TreeListItem {


    @CustomAnnotation(pid = true)
    String euClassName;

    @CustomAnnotation(pid = true)
    String viewInstId;


    @CustomAnnotation(pid = true)
    String bar;


    public GalleryMenuPopTree(String id, String caption) {
        super(id, caption);
    }

    public GalleryMenuPopTree(String pattern, CustomFormMenu menu) throws JDSException {
        super(menu.getType(), menu.getType() + "(" + menu.getCaption() + ")", menu.getImageClass());
    }

    public GalleryMenuPopTree(String pattern, GridMenu menu) throws JDSException {
        super(menu.getType(), menu.getType() + "(" + menu.getCaption() + ")", menu.getImageClass());
    }

    public GalleryMenuPopTree(String pattern, GridRowMenu menu) throws JDSException {
        super(menu.getType(), menu.getType() + "(" + menu.getCaption() + ")", menu.getImageClass());
    }


    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }

    public String getBar() {
        return bar;
    }

    public void setBar(String bar) {
        this.bar = bar;
    }
}
